<template>
  <div>
    <div :class="['header', whi ? 'whiteBack' : '']">
      <div @click="commonJs.funs(aa,bb)">
        <!-- <svg-icon icon-class="icon_back" /> -->
				 <img class="imgIcon" src="~/static/icon/Rectangle-path.png" />
      </div>
      <h2>{{contentTitle}}</h2>
      <div @click="searchPopShow">
        <img v-show="rightIconShow" class="imgIcon" src="~/static/icon/answer_icon_filtrate.png" />
      </div>
    </div>
    <SearchPopModel :searchPopup="searchPopup" @hidePopup="hidePopup"></SearchPopModel>

  </div>
</template>

<script>
  import SearchPopModel from '~/components/SearchPopModel'
  export default {
    props: {		
		  rightIconShow: Boolean,
      jumpRoute: String,
      contentTitle: String,
      aa: String,
      bb: String,
      whi: Boolean
    },
    components: {
      SearchPopModel,
    },
    data() {
      return {
        searchPopup: false,
      }
    },
    methods: {
      searchPopShow() {
        this.searchPopup = true;
      },
      goback() {
        // 返回上一步
        this.goto('/teachers/teaindex')
      },
      goto(routerName, queryData) {
				this.$router.push({
					path: routerName,
					query: {
						type: queryData
					}
				});
      },
      hidePopup(data) {
        this.searchPopup = data;
      },
    },
  }
</script>

<style lang="less" scoped>
  
  .header {
		width: 100%;
		height: 0.88rem;
		text-align: right;
		padding: 0 0.3rem;
		background: transparent;
    font-size: 0.3rem;
    letter-spacing: 0.05rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
		
    h2 {
      font-size: 0.36rem;
      font-weight:bold;
		}
  }
  .whiteBack { background: #fff; }
  .imgIcon{
    width: 0.4rem;
    height: 0.4rem;
  }
</style>

